package cn.org.timespace.plat.socket.mina.filter.command;

import org.apache.mina.core.session.IoSession;

import cn.org.timespace.plat.socket.mina.filter.ESPlatProtocalPack;

public interface ESPlatCommand {

	/**
	 * 校验收到的包的有效性
	 * */
	public boolean checkPackage(ESPlatProtocalPack pack);
	
	/**
	 * 处理包内容
	 * @param pack
	 * @return
	 */
	public void processPackage(IoSession session, ESPlatProtocalPack pack);
}
